local duomen = fk.CreateSkill {
  name = "lingling__duomen",
  tags = { Skill.Limited },
}

Fk:loadTranslationTable{
  ["lingling__duomen"] = "夺门",
  [":lingling__duomen"] = "限定技，出牌阶段，你可以视为使用【万箭齐发】。",

  ["#lingling__duomen"] = "夺门：你可以视为使用【万箭齐发】！",

  ["$lingling__duomen"] = "我决定了，今天，只有一个太子！",
  ["$lingling__duomen1"] = "丹朱不群，致于四内震耸；今舜兵已随，敢问天下鼎。",
  ["$lingling__duomen2"] = "非我欲取，实天所与，今不举，何时举？",
}

duomen:addEffect("viewas", {
  anim_type = "offensive",
  prompt = "#lingling__duomen",
  card_filter = Util.FalseFunc,
  view_as = function(self, player, cards)
    if #cards ~= 0 then return end
    local card = Fk:cloneCard("archery_attack")
    card.skillName = duomen.name
    return card
  end,
  enabled_at_play = function (self, player)
    return player:usedSkillTimes(duomen.name, Player.HistoryGame) == 0
  end,
})

return duomen
